/*
 * @Author: huangyingli
 * @Date: 2023-02-07 19:05:40
 * @LastEditors: huangyingli
 * @LastEditTime: 2023-02-09 13:29:46
 * @Description:
 */
import { useRoutes } from 'react-router-dom';

import { useBeforeRouteEach } from '../hooks/routeHook';

import { routes } from '../router';

function App() {
  // eslint-disable-next-line no-unused-vars
  const isLogin = useBeforeRouteEach();
  let element = useRoutes(routes);
  
  return element;
}

export default App;
